package com.syx.friend.Service;

import com.syx.commoncore.Model.Result;
import com.syx.commoncore.Model.TableDataInfoResult;
import com.syx.friend.Model.exam.DTO.ExamQueryDTO;
import com.syx.friend.Model.exam.DTO.ExamRankDTO;
import org.springframework.stereotype.Service;

@Service
public interface IExamService {
    TableDataInfoResult list(ExamQueryDTO examQueryDTO);


    TableDataInfoResult redisList(ExamQueryDTO examQueryDTO);

    Result<String> getFirstQuestion(Long examId);

    Result<String> preQuestion(Long examId,Long questionId);


    Result<String> nextQuestion(Long examId, Long questionId);


    TableDataInfoResult rankList(ExamRankDTO examRankDTO);


}
